package com.software610;

import java.math.BigDecimal;


public class GenSet implements Comparable<GenSet> {

	private int generation;
	private String function;
	private BigDecimal trainingDelta;
	
	public GenSet(int generation, String function, BigDecimal trainingDelta)
	{
		this.generation = generation;
		this.function = function;
		this.trainingDelta = trainingDelta;
	}

	public int getGeneration() {
		return generation;
	}

	public String getFunction() {
		return function;
	}

	public BigDecimal getTrainingDelta() {
		return trainingDelta;
	}

/*	//don't need these yet.
 	public void setGeneration(int generation) {
		this.generation = generation;
	}

	public void setFunction(String function) {
		this.function = function;
	}
*/
	public void setTrainingDelta(BigDecimal trainingDelta) {
		this.trainingDelta = trainingDelta;
	}

	public int compareTo(GenSet c)
	{
		return(trainingDelta.compareTo(c.getTrainingDelta()));
	}

}
